import { createApp } from 'vue'
import router from './router/index'
import App from './App.vue'
import './router/permission.ts'
import './publicStyle/index.less'
import 'ant-design-vue/dist/antd.css';
import { createPinia } from 'pinia'

import piniaPluginPersist from 'pinia-plugin-persist'
const store = createPinia()
store.use(piniaPluginPersist)

import { setupAntd } from './ant/index'
import Antd from 'ant-design-vue'

import '@/style/index.less'


import moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('zh-cn'); //设置语言 或 moment.lang('zh-cn');

// import axios from 'axios'
const app = createApp(App)
app.use(router)
app.use(Antd)
app.use(store)
//setupAntd(app)
app.mount('#app')
// 挂载原型
// app.config.globalProperties.$axios = axios
